package com.ttl.bc.ic.stkissue.bean;

import org.displaytag.decorator.TableDecorator;

import com.ttl.bc.stock.request2.bean.BCStkIssue2ShowBean;


public class BCStkIssueDDDecorator extends TableDecorator {

	public String getBillStatus() {
		
		BCStkIssue2ShowBean obj = (BCStkIssue2ShowBean)getCurrentRowObject();
		int billStatus = obj.getBillStatus();		
		
		if(billStatus==0) {
			return "รอเบิก";
		}else {
			return "จ่ายแล้ว";
		}
				
	}	
	
	public String getMode() {
		
		BCStkIssue2ShowBean obj = (BCStkIssue2ShowBean)getCurrentRowObject();
		@SuppressWarnings("unused")
		String docNo = obj.getDocNo();		
		
//		System.out.println("docNo="+docNo+", viewIndex="+getViewIndex()+",getListIndex()="+getListIndex() );		
		@SuppressWarnings("unused")
		int inPage = getListIndex()/50+1;		
		
		return "<center>" +				
				"Delete | "+
				"Edit "+				
				"</center>";				
	}	
}
